﻿using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BBCore.Core.Models.Admins
{
    [Table(Name = "HYJ_ROLEMENU")]
    [Description("角色菜单关系表")]
    public class RoleMenuEntity
    {
        [Column(IsPrimary = true)]
        public int RoleId { get; set; }

        [Navigate(nameof(RoleId))]
        public RoleEntity? RoleEntity { get; set; }

        [Column(IsPrimary = true)]
        public int MenuId { get; set; }

        [Navigate(nameof(MenuId))]
        public MenuEntity? MenuEntity { get; set; }
    }
}
